﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="chitiet.aspx.cs" Inherits="chitiet" Title="Chi tiết điện thoại" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/data_dtdd.mdb"
        SelectCommand="SELECT * FROM [DienThoai] WHERE ([masp] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="masp" QueryStringField="masp" Type="Int32" />
        </SelectParameters>
    </asp:AccessDataSource>
    <asp:Repeater ID="Repeater5" runat="server" 
        onitemcommand="Repeater5_ItemCommand">
        <ItemTemplate>
            <table width="100%">
                <tr>
                    <td style="width: 150px">
                        <asp:Image ID="Image2" runat="server" BorderColor="Gray" Height="150px" ImageUrl='<%# "Upload\\"+Eval("hinhanhsmall") %>'
                            Width="150px" />
                    </td>
                    <td style="text-align: left;" valign="top">
                        <asp:Label ID="lbltensp" runat="server" Font-Bold="True" Font-Size="16pt" ForeColor="LightSlateGray"
                            Text='<%# Eval("tensp") %>'></asp:Label>
                        <br />
                        Giá:&nbsp;<asp:Label ID="lblgia" runat="server" Font-Size="14pt" ForeColor="Red"
                            Text='<%# Eval("gia") %>'></asp:Label>
                        <span style="color: #FF0000">VND</span><br />
                        Áp dụng tại: <strong>TP. Hồ Chí Minh
                            <br />
                        </strong><span style="color: #0099ff"><strong>____________________________________<br />
                        </strong><span style="color: #330000"><strong>
                            <br />
                            Bảo hành</strong>: <span style="color: #ff9900">12 tháng<br />
                            </span></span><span style="color: #000000"><span class="gprice"><strong>Phụ kiện kèm
                                theo</strong>: </span>Bộ sạc, pin, tai nghe, sách hướng dẫn, CD</span><strong>
                            </strong></span>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px; text-align: center;">
                        <asp:Image ID="Image4" runat="server" Height="16px" ImageUrl="~/images/Actions-view-presentation-icon.png"
                            Width="16px" />
                        &nbsp;<!-- Java scrip open khung window nho--><script type="text/javascript">
                                                                          function poponload() {

                                                                              testwindow = window.open('<%# Eval("masp","XemHinhChiTiet.aspx?masp={0}") %>', "mywindow", "location=1,status=1,scrollbars=1,width=700,height=700");
                                                                              testwindow.moveTo(550, 500);
                                                                          }
                        </script><asp:HyperLink ID="linkxemnhieuhinh" runat="server" ForeColor="#3366FF"
                            href="#" onclick="javascript: poponload()" Font-Size="12px">
                                        Xem nhiều  hình
                        </asp:HyperLink>
                    </td>
                    <td style="width: 430px; text-align: left;" valign="top">
                        <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/images/aw22.png" CommandName="add"
                            OnClick="ImageButton5_Click" CausesValidation="False" />
                    </td>
                </tr>
            </table>
            <br />
            <table align="center" bgcolor="#E8E8E8" cellpadding="5" cellspacing="0" style="text-align: left;"
                width="550" border="1px" bordercolor="White">
                <tr>
                    <td bgcolor="darkgray" colspan="2" style="height: 32px">
                        <span style="font-size: 14pt"><span style="color: white"><strong>THÔNG TIN SẢN PHẨM</strong>:</span></span>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px; text-align: left;">
                        &nbsp;Kích&nbsp; thước:
                    </td>
                    <td style="width: 400px; text-align: left;" valign="top">
                        &nbsp;<asp:Label ID="Label16" runat="server" Text='<%# Eval("kichthuoc") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        &nbsp;Trọng lượng:
                    </td>
                    <td valign="top">
                        &nbsp;<asp:Label ID="Label17" runat="server" Text='<%# Eval("trongluong") %>'></asp:Label>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 100px">
                        &nbsp;Màn hình:
                    </td>
                    <td style="width: 400px" valign="top">
                        &nbsp;<asp:Label ID="Label18" runat="server" Text='<%# Eval("manhinh") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px; height: 29px;">
                        &nbsp;Camera:
                    </td>
                    <td style="width: 400px; height: 29px;" valign="top">
                        &nbsp;<asp:Label ID="Label19" runat="server" Text='<%# Eval("camera") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px" valign="top">
                        &nbsp;Thẻ nhớ:
                    </td>
                    <td style="width: 400px" valign="top">
                        &nbsp;<asp:Label ID="Label20" runat="server" Text='<%# Eval("thenho") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px" valign="top">
                        Tính năng đặc biệt:
                    </td>
                    <td style="width: 400px" valign="top">
                        <asp:Label ID="Label8" runat="server" Font-Bold="False" Font-Size="12pt" ForeColor="Black"
                            Text='<%# Eval("thongtin") %>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:Repeater>
    <br />
    <br />
    <table align="center" width="500px" bgcolor="#E8E8E8" cellpadding="3" cellspacing="0">
        <tr>
            <td style="padding-left: 30px; padding-right: 30px; padding-top: 20px;" align="center">
                <asp:Repeater ID="Repeater6" runat="server">
                    <ItemTemplate>
                        <span style="color: #6699FF; font-weight: bold; text-align: center;">CHIA SẺ Ý KIẾN
                            CỦA BẠN VỀ:</span>
                        <asp:Label ID="Label21" runat="server" Font-Bold="True" Font-Size="13pt" ForeColor="LightSlateGray"
                            Text='<%# Eval("tensp") %>'></asp:Label>
                        <br />
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                Email:
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                <asp:TextBox ID="txtemail" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                Tiêu đề:
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                <asp:TextBox ID="txttieude" runat="server" Width="450px" Style="text-align: left"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txttieude"
                    ErrorMessage="(*)" Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                Nhận xét của bạn :
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                <asp:TextBox ID="txtnoidung" runat="server" Height="150px" Width="450px" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtnoidung"
                    ErrorMessage="(*)" Display="Dynamic"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 30px">
                &nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Gửi Nhận Xét" />
                &nbsp;<asp:Button ID="Button3" runat="server" CausesValidation="False" OnClick="Button3_Click"
                    Text="Đăng Nhập" />
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                <asp:Label ID="lblluuy" runat="server" Text="Lưu ý:  Bạn cần phải đăng nhập mới có thể chia sẻ ý kiến !!!"
                    Font-Bold="True" ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
    </table>
    <br />
    <table align="center" width="550" style="border: 1px solid Silver" cellpadding="2"
        cellspacing="0">
        <tr>
            <td style="padding-top: 15px; padding-bottom: 15px" align="center" bgcolor="White">
                <asp:Repeater ID="Repeater7" runat="server">
                    <ItemTemplate>
                        <asp:Image ID="Image3" runat="server" ImageUrl="images/Pencil-icon.png" Width="16"
                            Height="16" />
                        <span style="color: #6699FF; font-weight: bold; text-align: center;">&nbsp;</span><span
                            style="color: #FF6600; font-weight: bold; text-align: center;">Ý KIẾN CỦA BẠN ĐỌC
                            VỀ:</span>
                        <asp:Label ID="Label21" runat="server" Font-Bold="True" Font-Size="13pt" ForeColor="LightSlateGray"
                            Text='<%# Eval("tensp") %>'></asp:Label>
                        <br />
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                <asp:Repeater ID="Repeater8" runat="server">
                    <ItemTemplate>
                        <table style="width: 100%" border="0">
                            <tr>
                                <td rowspan="5" style="padding: 10px" width="60px" valign="top">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="images/Apps-system-users-icon.png"
                                        Width="50" Height="50" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left">
                                    <asp:Label ID="lblten" runat="server" Style="font-weight: 700" Text='<%# Eval("HoTen") %>'></asp:Label>
                                    <span style="color: #C0C0C0">&nbsp;-
                                        <asp:Label ID="lblemail" runat="server" ForeColor="Silver" Text='<%# Eval("Email") %>'
                                            Font-Size="12px"></asp:Label>
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left">
                                    <asp:Label ID="lblten0" runat="server" Style="font-weight: 700" Text='<%# Eval("TieuDe") %>'></asp:Label>
                                    <span style="color: #C0C0C0">&nbsp;(<asp:Label ID="lblemail0" runat="server" ForeColor="Silver"
                                        Text='<%# Eval("ThoiGian") %>' Font-Size="12px"></asp:Label>
                                        )</span>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left">
                                    <asp:Label ID="Label3" runat="server" Font-Bold="False" Text='<%# Eval("NhanXet") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                        <hr style="border-style: none; border-color: inherit; border-width: 0px; background-color: #CCCCCC;
                            height: 1px; width: 96%" />
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
</asp:Content>
